projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edced19
)
* sysdep.c (MAXPATHLEN): Define only if needed.
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 14 Mar 2011 23:31:21 +0000
(16:31 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 14 Mar 2011 23:31:21 +0000
(16:31 -0700)
src/ChangeLog
patch
|
blob
|
history
src/sysdep.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index efc238cc07891d5175e8f7ca0ea89e198a53d322..0a6b29a006c3287f20db3ecfa6d7a95dfe3f772d 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-4,6
+4,7
@@
Fix pointer signedness issue.
(sys_subshell): Mark local as volatile if checking for lint,
to suppress a gcc -Wclobbered warning that does not seem to be right.
+ (MAXPATHLEN): Define only if needed.
* process.c (serial_open, serial_configure): Move decls from here ...
* systty.h: ... to here, so that they can be checked.
diff --git
a/src/sysdep.c
b/src/sysdep.c
index 1c49b2a3387b4add1c8d54bf63580395a843fd13..6ef3d88c5c8917357a1ea8791723a677fb254b95 100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-1886,13
+1886,13
@@
emacs_write (int fildes, const char *buf, unsigned int nbyte)
* under error conditions.
*/
+#ifndef HAVE_GETWD
+
#ifndef MAXPATHLEN
/* In 4.1, param.h fails to define this. */
#define MAXPATHLEN 1024
#endif
-#ifndef HAVE_GETWD
-
char *
getwd (char *pathname)
{